package light;

public class green_light implements Colorful{
    @Override
    public void shine() {
        System.out.println("绿灯发绿光");
    }

    public static void main(String[] args) {
        Colorful r = new red_light();
        Colorful y = new yellow_light();
        Colorful g = new green_light();

        r.shine();
        y.shine();
        g.shine();
    }
}
